package com.jiayang.hhotel.bean;

import java.io.Serializable;
import java.util.List;

import cn.droidlover.xdroidmvp.net.IModel;

/**
 * Created by Administrator on 2017/5/25 0025.
 * 预付数据类
 */

public class PrePayModel implements IModel,Serializable {


    /**
     * state : 9
     * info :
     * pDepositListDto : [{"date":"2009-08-27","trnDescp":"预收款现金","amount":309,"comment1":"山水间,台号:001,班次:1,操作员:hyg"},{"date":"2017-05-24","trnDescp":"预收款现金","amount":10000,"comment1":""},{"date":"2017-05-24","trnDescp":"预收款现金","amount":10000,"comment1":""},{"date":"2017-05-24","trnDescp":"预收款现金","amount":10000,"comment1":""},{"date":"2017-05-24","trnDescp":"预收款现金","amount":10000,"comment1":""},{"date":"2017-05-24","trnDescp":"预收款现金","amount":10000,"comment1":""},{"date":"2017-05-24","trnDescp":"预收款现金","amount":10000,"comment1":""}]
     * pDepositArinformDto : {"comment":"","amount":0,"deposit":0}
     */

    private int state;
    private String info;
    private PDepositArinformDtoBean pDepositArinformDto;
    private List<PDepositListDtoBean> pDepositListDto;

    @Override
    public boolean isNull() {
        return false;
    }

    @Override
    public boolean isAuthError() {
        return false;
    }

    @Override
    public boolean isBizError() {
        return false;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public PDepositArinformDtoBean getPDepositArinformDto() {
        return pDepositArinformDto;
    }

    public void setPDepositArinformDto(PDepositArinformDtoBean pDepositArinformDto) {
        this.pDepositArinformDto = pDepositArinformDto;
    }

    public List<PDepositListDtoBean> getPDepositListDto() {
        return pDepositListDto;
    }

    public void setPDepositListDto(List<PDepositListDtoBean> pDepositListDto) {
        this.pDepositListDto = pDepositListDto;
    }

    @Override
    public String toString() {
        return "PrePayModel{" +
                "state=" + state +
                ", info='" + info + '\'' +
                ", pDepositArinformDto=" + pDepositArinformDto +
                ", pDepositListDto=" + pDepositListDto +
                '}';
    }

    public static class PDepositArinformDtoBean {
        /**
         * comment :
         * amount : 0
         * deposit : 0
         */

        private String comment;
        private double amount;
        private double deposit;

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public double getDeposit() {
            return deposit;
        }

        public void setDeposit(double deposit) {
            this.deposit = deposit;
        }

        @Override
        public String toString() {
            return "PDepositArinformDtoBean{" +
                    "comment='" + comment + '\'' +
                    ", amount=" + amount +
                    ", deposit=" + deposit +
                    '}';
        }
    }

    public static class PDepositListDtoBean {
        /**
         * date : 2009-08-27
         * trnDescp : 预收款现金
         * amount : 309
         * comment1 : 山水间,台号:001,班次:1,操作员:hyg
         */

        private String date;
        private String trnDescp;
        private int amount;
        private String comment1;

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getTrnDescp() {
            return trnDescp;
        }

        public void setTrnDescp(String trnDescp) {
            this.trnDescp = trnDescp;
        }

        public int getAmount() {
            return amount;
        }

        public void setAmount(int amount) {
            this.amount = amount;
        }

        public String getComment1() {
            return comment1;
        }

        public void setComment1(String comment1) {
            this.comment1 = comment1;
        }

        @Override
        public String toString() {
            return "PDepositListDtoBean{" +
                    "date='" + date + '\'' +
                    ", trnDescp='" + trnDescp + '\'' +
                    ", amount=" + amount +
                    ", comment1='" + comment1 + '\'' +
                    '}';
        }
    }
}
